package org.dromara.system.domain.bo;

import org.dromara.system.domain.PayBlack;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * IP黑名单业务对象 pay_black
 *
 * @author Gavino
 * @date 2024-10-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayBlack.class, reverseConvertGenerate = false)
public class PayBlackBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 黑名单值
     */
    @NotBlank(message = "黑名单值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String val;

    /**
     * 类型
     */
    @NotNull(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 备注
     */
    private String remark;


}
